-
Notifications
You must be signed in to change notification settings - Fork 24
DOCSP-45005: Specify Docs to Return #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCSP-45005: Specify Docs to Return #290
Conversation
✅ Deploy Preview for mongodb-docs-csharp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
When calling ``Sort()``, you must pass in the sort definition as a parameter. You can construct a sort | ||
definition by using the ``Builders<T>.Sort.Ascending()`` method to sort values from | ||
lowest to highest, or the ``Builders<T>.Sort.Ascending()`` method to sort them from highest | ||
to lowest. Both of these methods take the field name to sort by as a parameter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure here how much "complete" we want this section to be, but I think it would be worth mentioning here that:
- You can also build a
SortDefinition
by using aBsonDocument
- You can chain the
Builders<T>.Sort
methods. For exampleBuilders<T>.Sort.Ascending(A).Descending(B)
- There are other methods on the sort definition builder
Builders<T>.Sort, for example
Combine, that can be used to combine multiple sort definition, or other methods that can be used for very specific use cases like
MetaTextScore`
Of all those, probably number 2 is the one worth mentioning for sure. For the others... I'm not sure how much we want to say here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
(cherry picked from commit e9347d6)
Pull Request Info
PR Reviewing Guidelines
JIRA - https://jira.mongodb.org/browse/DOCSP-45005
Staging Links
Self-Review Checklist